﻿@using VVA.Website.UI.Service

@{    
    ViewBag.Title = "Contact";
}
@model VVA.Website.UI.Models.ViewModel.ContractDictionaryViewModel

@section breadcrumb{
&nbsp;
}
<h3>@Model.CompanyName</h3>
<div class="row">
    <div class="span16">
        @Model.Address
    </div>
    <div class="span16">
        Tel: @Model.Telephone
    </div>
    <div class="span16">
        Fax: @Model.Fax
    </div>
    <div class="span16">
        Email: <a id="lnkEmail" href="javascript:void(0)">@Model.Email</a>
    </div>
    <div class="span16">
        @Model.Website
    </div>
    <div id="updatePanel" class="span16">
        @{
            Html.RenderAction("Map", "Contact");
        }
        <div style="clear: both"></div>
    </div>
    <div style="clear: both"></div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#lnkEmail").live("click", function () {
            $("#updatePanel").load('@Url.Action("ContactForm", "Contact")', function () {
                $(this).removeClass("span16").addClass("span10").css("padding-left", "230px");
                resizeMainContent();
                $("#lnkEmail").live("click", function () {
                    return false;
                });
            });
        });
    });
</script>
